home *** CD-ROM | disk | FTP | other *** search
/ How Would You Survive? / How Would You Survive (1995)(Grolier)[Mac-PC].iso / pc / egyptw.dir / 01704_Script_Animate-Circle < prev    next >
Text File  |  1995-09-13  |  7KB  |  252 lines

  1. global gBeenClicked
  2.  
  3. on Animate2 whichsprite, whichsound, HowManyTimes
  4.   global gAnimationcast
  5.   puppetsound whichsound
  6.   set gAnimationcast = the castnum of sprite whichsprite
  7.   set count = 0
  8.   set animating = 1
  9.   repeat while count < HowManyTimes
  10.     if animating = 1 then
  11.       set the castnum of sprite whichsprite = gAnimationcast + 1
  12.       updatestage
  13.       if (the mousedown) then 
  14.         set animating = 0
  15.         exit repeat
  16.       end if
  17.       wait .2
  18.       set the castnum of sprite whichsprite = gAnimationcast
  19.       updatestage
  20.       if (the mousedown) then 
  21.         set animating = 0
  22.         exit repeat
  23.       end if
  24.       wait .8
  25.       set count = count + 1
  26.     end if
  27.   end repeat
  28.   set the castnum of sprite whichsprite = gAnimationcast
  29.   updatestage
  30.   Puppetsound 0
  31.   set gBeenClicked = 0
  32. end
  33.  
  34. on Animate2X whichsprite1, whichsprite2, whichsound, HowManyTimes
  35.   global gAnimationcast, gAnimationcast2
  36.   set gAnimationcast = the castnum of sprite whichsprite1
  37.   set gAnimationcast2 = the castnum of sprite whichsprite2
  38.   set count = 0
  39.   set cowhead = 1
  40.   set animating = 1
  41.   repeat while count < HowManyTimes
  42.     if animating = 1 then
  43.       set the castnum of sprite whichsprite1 = gAnimationcast + 1
  44.       puppetsound whichsound
  45.       updatestage
  46.       wait .5
  47.       if (the mousedown) then 
  48.         set animating = 0
  49.         exit repeat
  50.       end if
  51.       if cowhead = 1 then
  52.         set the castnum of sprite whichsprite2 = gAnimationcast2 + 1
  53.         updatestage
  54.         wait .3
  55.         if (the mousedown) then 
  56.           set animating = 0
  57.           exit repeat
  58.         end if
  59.         set the castnum of sprite whichsprite2 = gAnimationcast2
  60.         updatestage
  61.         wait .3
  62.         set cowhead = 0
  63.       else
  64.         set cowhead = 1
  65.       end if
  66.       set the castnum of sprite whichsprite1 = gAnimationcast
  67.       Puppetsound 0
  68.       updatestage
  69.       wait .3
  70.       if (the mousedown) then 
  71.         set animating = 0
  72.         exit repeat
  73.       end if
  74.       set count = count + 1
  75.     end if
  76.   end repeat
  77.   set the castnum of sprite whichsprite2 = gAnimationcast2
  78.   set the castnum of sprite whichsprite1 = gAnimationcast
  79.   puppetsound 0
  80.   updatestage
  81.   set gBeenClicked = 0
  82. end
  83.  
  84.  
  85. on Animate5X whichsprite1, whichsprite2, whichsound, HowManyTimes
  86.   global gAnimationcast1, gAnimationcast2
  87.   set gAnimationcast1 = the castnum of sprite whichsprite1
  88.   set gAnimationcast2 = the castnum of sprite whichsprite2
  89.   set count = 0
  90.   set animating = 1
  91.   puppetsound whichsound
  92.   repeat while count < HowManyTimes
  93.     if animating = 1 then
  94.       set the castnum of sprite whichsprite1 = gAnimationcast1 + 1
  95.       set the castnum of sprite whichsprite2 = gAnimationcast2 + 1
  96.       updatestage
  97.       wait .2
  98.       if (the mousedown) then 
  99.         set animating = 0
  100.         exit repeat
  101.       end if
  102.       set the castnum of sprite whichsprite1 = gAnimationcast1
  103.       set the castnum of sprite whichsprite2 = gAnimationcast2 + 2
  104.       updatestage
  105.       if (the mousedown) then 
  106.         set animating = 0
  107.         exit repeat
  108.       end if
  109.       wait .2
  110.       set the castnum of sprite whichsprite2 = gAnimationcast2 + 3
  111.       updatestage
  112.       if (the mousedown) then 
  113.         set animating = 0
  114.         exit repeat
  115.       end if
  116.       wait .2
  117.       set the castnum of sprite whichsprite2 = gAnimationcast2 + 4
  118.       updatestage
  119.       if (the mousedown) then 
  120.         set animating = 0
  121.         exit repeat
  122.       end if
  123.       wait .5
  124.       set the castnum of sprite whichsprite2 = gAnimationcast2 + 3
  125.       updatestage
  126.       if (the mousedown) then 
  127.         set animating = 0
  128.         exit repeat
  129.       end if
  130.       wait .2
  131.       set the castnum of sprite whichsprite2 = gAnimationcast2
  132.       updatestage
  133.       if (the mousedown) then 
  134.         set animating = 0
  135.         exit repeat
  136.       end if
  137.       wait .2
  138.       set the castnum of sprite whichsprite1 = gAnimationcast1 + 1
  139.       set the castnum of sprite whichsprite2 = gAnimationcast2 + 1
  140.       updatestage
  141.       if (the mousedown) then 
  142.         set animating = 0
  143.         exit repeat
  144.       end if
  145.       wait .2
  146.       set the castnum of sprite whichsprite1 = gAnimationcast1
  147.       set the castnum of sprite whichsprite2 = gAnimationcast2 + 2
  148.       updatestage
  149.       if (the mousedown) then 
  150.         set animating = 0
  151.         exit repeat
  152.       end if
  153.       wait .2
  154.       set the castnum of sprite whichsprite2 = gAnimationcast2 + 3
  155.       updatestage
  156.       if (the mousedown) then 
  157.         set animating = 0
  158.         exit repeat
  159.       end if
  160.       wait .2
  161.       set the castnum of sprite whichsprite2 = gAnimationcast2 + 4
  162.       updatestage
  163.       if (the mousedown) then 
  164.         set animating = 0
  165.         exit repeat
  166.       end if
  167.       wait .5
  168.       set the castnum of sprite whichsprite2 = gAnimationcast2 + 3
  169.       updatestage
  170.       if (the mousedown) then 
  171.         set animating = 0
  172.         exit repeat
  173.       end if
  174.       wait .2
  175.       set the castnum of sprite whichsprite2 = gAnimationcast2 + 4
  176.       updatestage
  177.       if (the mousedown) then 
  178.         set animating = 0
  179.         exit repeat
  180.       end if
  181.       wait .5
  182.       set the castnum of sprite whichsprite2 = gAnimationcast2 + 3
  183.       updatestage
  184.       if (the mousedown) then 
  185.         set animating = 0
  186.         exit repeat
  187.       end if
  188.       wait .2
  189.       set count = count + 1
  190.     end if
  191.   end repeat
  192.   set the castnum of sprite whichsprite2 = gAnimationcast2
  193.   set the castnum of sprite whichsprite1 = gAnimationcast1
  194.   updatestage
  195.   puppetsound 0
  196.   set gBeenClicked = 0
  197. end
  198.  
  199. on Animate5 whichsprite, whichsound
  200.   global gAnimationcast
  201.   puppetsound whichsound
  202.   set gAnimationcast = the castnum of sprite whichsprite
  203.   repeat with x = 1 to 4
  204.     set the castnum of sprite whichsprite = gAnimationcast + x
  205.     updatestage
  206.     wait .1
  207.   end repeat
  208.   set the castnum of sprite whichsprite = gAnimationcast
  209.   updatestage
  210.   wait .1
  211.   Puppetsound 0
  212. end
  213.  
  214. on Animate6 whichsprite, whichsound
  215.   global gAnimationcast
  216.   puppetsound whichsound
  217.   updatestage
  218.   set animating = 1
  219.   repeat while (soundbusy(1) and (animating = 1))
  220.     wait .3
  221.     set gAnimationcast = the castnum of sprite whichsprite
  222.     repeat with x = 1 to 5 
  223.       if (the mousedown) then 
  224.         set animating = 0
  225.         exit repeat
  226.       end if
  227.       set the castnum of sprite whichsprite = gAnimationcast + x
  228.       updatestage
  229.       wait .2
  230.     end repeat
  231.     set the castnum of sprite whichsprite = gAnimationcast
  232.     updatestage
  233.   end repeat
  234.   Puppetsound 0
  235.   set gBeenClicked = 0
  236. end
  237.  
  238. on Animate12 whichsprite, whichsound
  239.   global gAnimationcast
  240.   puppetsound whichsound
  241.   set gAnimationcast = the castnum of sprite whichsprite
  242.   repeat with x = 1 to 11
  243.     set the castnum of sprite whichsprite = gAnimationcast + x
  244.     updatestage
  245.     wait .1
  246.   end repeat
  247.   set the castnum of sprite whichsprite = gAnimationcast
  248.   updatestage
  249.   wait .1
  250.   Puppetsound 0
  251.   set gBeenClicked = 0
  252. end